package com.eshop.modules.mp.service.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import java.io.Serializable;

public class ArticleDto implements Serializable
{
    private Integer id;
    private String cid;
    private String title;
    private String author;
    private String imageInput;
    private String synopsis;
    private String content;
    private String shareTitle;
    private String shareSynopsis;
    private String visit;
    private Integer sort;
    private String url;
    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    private Integer hide;
    private Integer adminId;
    private Integer merId;
    private Integer productId;
    private Integer isHot;
    private Integer isBanner;
    private String thumbMediaId;
    
    public Integer getId() {
        return this.id;
    }
    
    public String getCid() {
        return this.cid;
    }
    
    public String getTitle() {
        return this.title;
    }
    
    public String getAuthor() {
        return this.author;
    }
    
    public String getImageInput() {
        return this.imageInput;
    }
    
    public String getSynopsis() {
        return this.synopsis;
    }
    
    public String getContent() {
        return this.content;
    }
    
    public String getShareTitle() {
        return this.shareTitle;
    }
    
    public String getShareSynopsis() {
        return this.shareSynopsis;
    }
    
    public String getVisit() {
        return this.visit;
    }
    
    public Integer getSort() {
        return this.sort;
    }
    
    public String getUrl() {
        return this.url;
    }
    
    public Integer getStatus() {
        return this.status;
    }
    
    public Date getCreateTime() {
        return this.createTime;
    }
    
    public Integer getHide() {
        return this.hide;
    }
    
    public Integer getAdminId() {
        return this.adminId;
    }
    
    public Integer getMerId() {
        return this.merId;
    }
    
    public Integer getProductId() {
        return this.productId;
    }
    
    public Integer getIsHot() {
        return this.isHot;
    }
    
    public Integer getIsBanner() {
        return this.isBanner;
    }
    
    public String getThumbMediaId() {
        return this.thumbMediaId;
    }
    
    public void setId(final Integer id) {
        this.id = id;
    }
    
    public void setCid(final String cid) {
        this.cid = cid;
    }
    
    public void setTitle(final String title) {
        this.title = title;
    }
    
    public void setAuthor(final String author) {
        this.author = author;
    }
    
    public void setImageInput(final String imageInput) {
        this.imageInput = imageInput;
    }
    
    public void setSynopsis(final String synopsis) {
        this.synopsis = synopsis;
    }
    
    public void setContent(final String content) {
        this.content = content;
    }
    
    public void setShareTitle(final String shareTitle) {
        this.shareTitle = shareTitle;
    }
    
    public void setShareSynopsis(final String shareSynopsis) {
        this.shareSynopsis = shareSynopsis;
    }
    
    public void setVisit(final String visit) {
        this.visit = visit;
    }
    
    public void setSort(final Integer sort) {
        this.sort = sort;
    }
    
    public void setUrl(final String url) {
        this.url = url;
    }
    
    public void setStatus(final Integer status) {
        this.status = status;
    }
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public void setCreateTime(final Date createTime) {
        this.createTime = createTime;
    }
    
    public void setHide(final Integer hide) {
        this.hide = hide;
    }
    
    public void setAdminId(final Integer adminId) {
        this.adminId = adminId;
    }
    
    public void setMerId(final Integer merId) {
        this.merId = merId;
    }
    
    public void setProductId(final Integer productId) {
        this.productId = productId;
    }
    
    public void setIsHot(final Integer isHot) {
        this.isHot = isHot;
    }
    
    public void setIsBanner(final Integer isBanner) {
        this.isBanner = isBanner;
    }
    
    public void setThumbMediaId(final String thumbMediaId) {
        this.thumbMediaId = thumbMediaId;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof ArticleDto)) {
            return false;
        }
        final ArticleDto other = (ArticleDto)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        Label_0065: {
            if (this$id == null) {
                if (other$id == null) {
                    break Label_0065;
                }
            }
            else if (this$id.equals(other$id)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$sort = this.getSort();
        final Object other$sort = other.getSort();
        Label_0102: {
            if (this$sort == null) {
                if (other$sort == null) {
                    break Label_0102;
                }
            }
            else if (this$sort.equals(other$sort)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$status = this.getStatus();
        final Object other$status = other.getStatus();
        Label_0139: {
            if (this$status == null) {
                if (other$status == null) {
                    break Label_0139;
                }
            }
            else if (this$status.equals(other$status)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$hide = this.getHide();
        final Object other$hide = other.getHide();
        Label_0176: {
            if (this$hide == null) {
                if (other$hide == null) {
                    break Label_0176;
                }
            }
            else if (this$hide.equals(other$hide)) {
                break Label_0176;
            }
            return false;
        }
        final Object this$adminId = this.getAdminId();
        final Object other$adminId = other.getAdminId();
        Label_0213: {
            if (this$adminId == null) {
                if (other$adminId == null) {
                    break Label_0213;
                }
            }
            else if (this$adminId.equals(other$adminId)) {
                break Label_0213;
            }
            return false;
        }
        final Object this$merId = this.getMerId();
        final Object other$merId = other.getMerId();
        Label_0250: {
            if (this$merId == null) {
                if (other$merId == null) {
                    break Label_0250;
                }
            }
            else if (this$merId.equals(other$merId)) {
                break Label_0250;
            }
            return false;
        }
        final Object this$productId = this.getProductId();
        final Object other$productId = other.getProductId();
        Label_0287: {
            if (this$productId == null) {
                if (other$productId == null) {
                    break Label_0287;
                }
            }
            else if (this$productId.equals(other$productId)) {
                break Label_0287;
            }
            return false;
        }
        final Object this$isHot = this.getIsHot();
        final Object other$isHot = other.getIsHot();
        Label_0324: {
            if (this$isHot == null) {
                if (other$isHot == null) {
                    break Label_0324;
                }
            }
            else if (this$isHot.equals(other$isHot)) {
                break Label_0324;
            }
            return false;
        }
        final Object this$isBanner = this.getIsBanner();
        final Object other$isBanner = other.getIsBanner();
        Label_0361: {
            if (this$isBanner == null) {
                if (other$isBanner == null) {
                    break Label_0361;
                }
            }
            else if (this$isBanner.equals(other$isBanner)) {
                break Label_0361;
            }
            return false;
        }
        final Object this$cid = this.getCid();
        final Object other$cid = other.getCid();
        Label_0398: {
            if (this$cid == null) {
                if (other$cid == null) {
                    break Label_0398;
                }
            }
            else if (this$cid.equals(other$cid)) {
                break Label_0398;
            }
            return false;
        }
        final Object this$title = this.getTitle();
        final Object other$title = other.getTitle();
        Label_0435: {
            if (this$title == null) {
                if (other$title == null) {
                    break Label_0435;
                }
            }
            else if (this$title.equals(other$title)) {
                break Label_0435;
            }
            return false;
        }
        final Object this$author = this.getAuthor();
        final Object other$author = other.getAuthor();
        Label_0472: {
            if (this$author == null) {
                if (other$author == null) {
                    break Label_0472;
                }
            }
            else if (this$author.equals(other$author)) {
                break Label_0472;
            }
            return false;
        }
        final Object this$imageInput = this.getImageInput();
        final Object other$imageInput = other.getImageInput();
        Label_0509: {
            if (this$imageInput == null) {
                if (other$imageInput == null) {
                    break Label_0509;
                }
            }
            else if (this$imageInput.equals(other$imageInput)) {
                break Label_0509;
            }
            return false;
        }
        final Object this$synopsis = this.getSynopsis();
        final Object other$synopsis = other.getSynopsis();
        Label_0546: {
            if (this$synopsis == null) {
                if (other$synopsis == null) {
                    break Label_0546;
                }
            }
            else if (this$synopsis.equals(other$synopsis)) {
                break Label_0546;
            }
            return false;
        }
        final Object this$content = this.getContent();
        final Object other$content = other.getContent();
        Label_0583: {
            if (this$content == null) {
                if (other$content == null) {
                    break Label_0583;
                }
            }
            else if (this$content.equals(other$content)) {
                break Label_0583;
            }
            return false;
        }
        final Object this$shareTitle = this.getShareTitle();
        final Object other$shareTitle = other.getShareTitle();
        Label_0620: {
            if (this$shareTitle == null) {
                if (other$shareTitle == null) {
                    break Label_0620;
                }
            }
            else if (this$shareTitle.equals(other$shareTitle)) {
                break Label_0620;
            }
            return false;
        }
        final Object this$shareSynopsis = this.getShareSynopsis();
        final Object other$shareSynopsis = other.getShareSynopsis();
        Label_0657: {
            if (this$shareSynopsis == null) {
                if (other$shareSynopsis == null) {
                    break Label_0657;
                }
            }
            else if (this$shareSynopsis.equals(other$shareSynopsis)) {
                break Label_0657;
            }
            return false;
        }
        final Object this$visit = this.getVisit();
        final Object other$visit = other.getVisit();
        Label_0694: {
            if (this$visit == null) {
                if (other$visit == null) {
                    break Label_0694;
                }
            }
            else if (this$visit.equals(other$visit)) {
                break Label_0694;
            }
            return false;
        }
        final Object this$url = this.getUrl();
        final Object other$url = other.getUrl();
        Label_0731: {
            if (this$url == null) {
                if (other$url == null) {
                    break Label_0731;
                }
            }
            else if (this$url.equals(other$url)) {
                break Label_0731;
            }
            return false;
        }
        final Object this$createTime = this.getCreateTime();
        final Object other$createTime = other.getCreateTime();
        Label_0768: {
            if (this$createTime == null) {
                if (other$createTime == null) {
                    break Label_0768;
                }
            }
            else if (this$createTime.equals(other$createTime)) {
                break Label_0768;
            }
            return false;
        }
        final Object this$thumbMediaId = this.getThumbMediaId();
        final Object other$thumbMediaId = other.getThumbMediaId();
        if (this$thumbMediaId == null) {
            if (other$thumbMediaId == null) {
                return true;
            }
        }
        else if (this$thumbMediaId.equals(other$thumbMediaId)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof ArticleDto;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        final Object $sort = this.getSort();
        result = result * 59 + (($sort == null) ? 43 : $sort.hashCode());
        final Object $status = this.getStatus();
        result = result * 59 + (($status == null) ? 43 : $status.hashCode());
        final Object $hide = this.getHide();
        result = result * 59 + (($hide == null) ? 43 : $hide.hashCode());
        final Object $adminId = this.getAdminId();
        result = result * 59 + (($adminId == null) ? 43 : $adminId.hashCode());
        final Object $merId = this.getMerId();
        result = result * 59 + (($merId == null) ? 43 : $merId.hashCode());
        final Object $productId = this.getProductId();
        result = result * 59 + (($productId == null) ? 43 : $productId.hashCode());
        final Object $isHot = this.getIsHot();
        result = result * 59 + (($isHot == null) ? 43 : $isHot.hashCode());
        final Object $isBanner = this.getIsBanner();
        result = result * 59 + (($isBanner == null) ? 43 : $isBanner.hashCode());
        final Object $cid = this.getCid();
        result = result * 59 + (($cid == null) ? 43 : $cid.hashCode());
        final Object $title = this.getTitle();
        result = result * 59 + (($title == null) ? 43 : $title.hashCode());
        final Object $author = this.getAuthor();
        result = result * 59 + (($author == null) ? 43 : $author.hashCode());
        final Object $imageInput = this.getImageInput();
        result = result * 59 + (($imageInput == null) ? 43 : $imageInput.hashCode());
        final Object $synopsis = this.getSynopsis();
        result = result * 59 + (($synopsis == null) ? 43 : $synopsis.hashCode());
        final Object $content = this.getContent();
        result = result * 59 + (($content == null) ? 43 : $content.hashCode());
        final Object $shareTitle = this.getShareTitle();
        result = result * 59 + (($shareTitle == null) ? 43 : $shareTitle.hashCode());
        final Object $shareSynopsis = this.getShareSynopsis();
        result = result * 59 + (($shareSynopsis == null) ? 43 : $shareSynopsis.hashCode());
        final Object $visit = this.getVisit();
        result = result * 59 + (($visit == null) ? 43 : $visit.hashCode());
        final Object $url = this.getUrl();
        result = result * 59 + (($url == null) ? 43 : $url.hashCode());
        final Object $createTime = this.getCreateTime();
        result = result * 59 + (($createTime == null) ? 43 : $createTime.hashCode());
        final Object $thumbMediaId = this.getThumbMediaId();
        result = result * 59 + (($thumbMediaId == null) ? 43 : $thumbMediaId.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "ArticleDto(id=" + this.getId() + ", cid=" + this.getCid() + ", title=" + this.getTitle() + ", author=" + this.getAuthor() + ", imageInput=" + this.getImageInput() + ", synopsis=" + this.getSynopsis() + ", content=" + this.getContent() + ", shareTitle=" + this.getShareTitle() + ", shareSynopsis=" + this.getShareSynopsis() + ", visit=" + this.getVisit() + ", sort=" + this.getSort() + ", url=" + this.getUrl() + ", status=" + this.getStatus() + ", createTime=" + this.getCreateTime() + ", hide=" + this.getHide() + ", adminId=" + this.getAdminId() + ", merId=" + this.getMerId() + ", productId=" + this.getProductId() + ", isHot=" + this.getIsHot() + ", isBanner=" + this.getIsBanner() + ", thumbMediaId=" + this.getThumbMediaId() + ")";
    }
}
